package org.jeecg.modules.hotel.leave.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 离校管理
 * @Author: jeecg-boot
 * @Date:   2021-05-04
 * @Version: V1.0
 */
@Data
@TableName("lwgy_leave_school")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="lwgy_leave_school", description="离校申请")
public class LwgyHotelLeaveSchool implements Serializable {
    private static final long serialVersionUID = 1L;

    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    /**姓名*/
    @Excel(name = "姓名(必填)", width = 15)
    @ApiModelProperty(value = "姓名")
    private String studentName;
    /**用户id*/
    @Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private String studentId;
    /**学号*/
    @Excel(name = "学号(必填)", width = 15)
    @ApiModelProperty(value = "学号")
    private String studentNumber;

    /**校区*/
    @Excel(name = "校区", width = 15,dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @ApiModelProperty(value = "校区")
    private String studentCampus;
    /**院系*/
    @Excel(name = "院系", width = 15,dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @ApiModelProperty(value = "院系")
    private String studentCollege;
    /**年级*/
    @Excel(name = "年级", width = 15,dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @ApiModelProperty(value = "年级")
    private String studentYear;
    /**专业*/
    @Excel(name = "专业", width = 15,dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @ApiModelProperty(value = "专业")
    private String studentMajor;
    /**班级*/
    @Excel(name = "班级", width = 15,dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @Dict(dictTable = "lwgy_base_school",dicCode = "id",dicText = "name")
    @ApiModelProperty(value = "班级")
    private String studentClass;

    /**校区*/
    @Excel(name = "校区", width = 15,dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
    @Dict(dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "校区")
    private String campusId;
    /**楼宇*/
    @Excel(name = "楼宇", width = 15,dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
    @Dict(dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "楼宇")
    private String buildingId;
    /**单元*/
    @Excel(name = "单元", width = 15,dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
    @Dict(dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "单元")
    private String unitId;
    /**楼层*/
    @Excel(name = "楼层", width = 15,dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
    @Dict(dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "楼层")
    private String layerId;
    /**房间*/
    @Excel(name = "房间", width = 15,dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
    @Dict(dictTable = "lwgy_base_apartment", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "房间")
    private String roomId;
    /**
     * 推送人用户名
     */
    @Excel(name = "推送人", width = 15)
    @ApiModelProperty(value = "推送人")
    private String fromUser;
    /***
     * 接受人用户名
     */
    @Excel(name = "推给谁", width = 15)
    @ApiModelProperty(value = "推给谁")
    private String toUser;

    /**性别*/
    @Excel(name = "性别", width = 15, dicCode = "sex")
    @Dict(dicCode = "sex")
    @ApiModelProperty(value = "性别")
    private String studentSex;

    /**原因*/
    @Excel(name = "原因", width = 15)
    @ApiModelProperty(value = "原因")
    private String reason;
    /**申请时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "申请时间")
    private Date createTime;
    /**欠费缴纳*/
    @Dict(dicCode = "arrears_payment")
    @Excel(name = "欠费缴纳", width = 15,dicCode = "arrears_payment")
    @ApiModelProperty(value = "欠费缴纳")
    private String arrearsPayment;
    /**图书归还*/
    @Dict(dicCode = "return_books")
    @Excel(name = "图书归还", width = 15,dicCode = "return_books")
    @ApiModelProperty(value = "图书归还")
    private String returnBooks;
    /**住宿状态*/
    @Dict(dicCode = "hotel_state")
    @Excel(name = "住宿状态", width = 15,dicCode = "hotel_state")
    @ApiModelProperty(value = "住宿状态")
    private String hotelState;
    /**处理状态*/
    @Excel(name = "处理状态", width = 15,dicCode = "processing_state")
    @Dict(dicCode = "processing_state")
    @ApiModelProperty(value = "处理状态")
    private String processingState;
    /**确认状态*/
    @Excel(name = "确认状态", width = 15,dicCode = "success_state")
    @Dict(dicCode = "success_state")
    @ApiModelProperty(value = "确认状态")
    private java.lang.String successState;
    /**处理结果*/
    @Dict(dicCode = "hotel_his_state")
    @Excel(name = "处理结果", width = 15,dicCode = "hotel_his_state")
    @ApiModelProperty(value = "处理结果")
    private String processingResult;

    /**回执*/
    @Excel(name = "处理回执", width = 15)
    @ApiModelProperty(value = "处理回执")
    private String refuseReason;

    /**3-学生提交 2-辅导员提交  1-管理员已经审核完毕 0-驳回申请*/
    @Excel(name = "审核流程", width = 15)
    @ApiModelProperty(value = "审核流程")
    private String auditProcess;

    /**是否有效*/
    @Excel(name = "是否有效", width = 15)
    @ApiModelProperty(value = "是否有效")
    private String delFlag;

    @Excel(name = "管理员", width = 15)
    @ApiModelProperty(value = "管理员")
    @TableField(exist = false)
    private String adminName;

    /**学生状态0：在校，1：离校*/
    @Excel(name = "学生状态0：在校，1：离校", width = 15, dicCode = "student_state")
    @Dict(dicCode = "student_state")
    @ApiModelProperty(value = "学生状态0：在校，1：离校")
    @TableField(exist = false)
    private String studentState;

    /**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**更新日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
}
